package cn.edu.hubu.hubusmartzoohouse.mapper;

import cn.edu.hubu.hubusmartzoohouse.entity.Device;
import cn.edu.hubu.hubusmartzoohouse.entity.Stadium;
import cn.edu.hubu.hubusmartzoohouse.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 被测试类
 */
public interface DeviceMapper {

    public int insert(Device device);

    public List<Device> listAll();

    public int updateIsDelete(@Param("deviceId") int deviceId,
                              @Param("isDeleteDevice") int isDeleteDevice);

    public int updateDevice(Device device);

    public Device selectById(int deviceId);
    public Device selectByName(String deviceName);

}